<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<base href="${base}" />
<meta charset="UTF-8" />
<title>修改密码 - 个人会员中心 - 人才系统</title>
<link rel="shortcut icon" href="favicon.ico" />
<link href="styles/user.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.9.1.js"></script>
</head>
<script type="text/javascript">
/**
 * 修改密码  两次不一就不传入后端 
 */
 function updatepwd(){
	let password=$("#password").val();
	let password1=$("#password1").val();
	if(password!=password1){
		alert("两次密码不一样");
		return
		}
	 $.ajax({
		url : "/user/updatepwd",
		type : "post",
		dataType : "JSON",
		data : $("#Form1").serialize(),
		success : function(data) {
			var vo = data;
			if (vo.code == 200) {
				alert(vo.meg);
				
			} else {
				alert(vo.meg);
			}
		}

	}); 
}
</script>
<body>
	<jsp:include page="../header.jsp"></jsp:include>
	<!--导航 -->
	<div class="floatnav">
		<jsp:include page="../nav.jsp"></jsp:include>
	</div>
	<!--导航end -->
	<div class="page_location link_bk">
		当前位置：<a href="//">首页</a>&nbsp;>>&nbsp;<a href="personal/">会员中心</a>&nbsp;>>&nbsp;账户管理&nbsp;>>&nbsp;修改密码
	</div>
	<table width="985" border="0" align="center" cellpadding="0"
		cellspacing="0" style="margin-top: 8px;">
		<tr>
			<td width="173" valign="top" class="link_bk"><jsp:include
					page="left.jsp" /></td>
			<td valign="top">
				<div class="user_right_box">
					<div class="user_right_top_tit_bg">
						<h1>修改密码</h1>
					</div>
					<div class="us_tab">
						<a href="user/meg">基本资料</a> <a href="">认证邮箱</a> <a href="">我的头像</a> <a
							href="" class="select">密码修改</a>
						<div class="clear"></div>
					</div>
					<form id="Form1" name="Form1" method="post" action="">
						<table width="100%" border="0" cellpadding="4" cellspacing="0"
							style="margin-top: 20px; margin-bottom: 20px;">

							<td width="150" height="30" align="right" bgcolor="#FFFFFF"><span
								style="color: #FF3300; font-weight: bold">*</span>旧密码：</td>
							<td><input name="oldpassword" type="password"
								id="oldpassword" class="input_text_200" maxlength="20" /></td>
							</tr>
							<tr>
								<td height="30" align="right" bgcolor="#FFFFFF"><span
									style="color: #FF3300; font-weight: bold">*</span>新密码：</td>
								<td><input name="password" type="password"
									class="input_text_200" id="password" maxlength="18" /></td>
							</tr>
							<tr>
								<td height="30" align="right" bgcolor="#FFFFFF"><span
									style="color: #FF3300; font-weight: bold">*</span>再次输入新密码：</td>
								<td><input name="password1" type="password"
									class="input_text_200" id="password1" maxlength="18" /></td>
							</tr>
							<tr>
								<td height="30" align="right" bgcolor="#FFFFFF">&nbsp;</td>
								<td><input type="button" name="Submit" value="确定修改"
									class="user_submit" onclick="updatepwd()" /></td>
							</tr>
						</table>
					</form>
				</div>
			</td>
		</tr>
	</table>
	<jsp:include page="../footer.jsp" />
</body>
</html>
